package com.zf.yichat.service;

import com.zf.yichat.dto.UserInviteSearchDto;
import com.zf.yichat.model.User;
import com.zf.yichat.utils.response.FsResponse;

import java.util.List;

/**
 * @author idea
 * @date Created in 2020/10/13 16:08
 * @description
 */
public interface UserInviteService {
    //增加邀请明细，需要判断是否已经有过邀请记录
    FsResponse addDetail(Long userId, Long referId);

    //邀请码生效->改变状态，增加对应推荐人的余额
    void effectDetail(Long userId, String idNumber, String realName);

    User selectInviteUser(Long userId);

    List<List<UserInviteSearchDto>> selectInviteList(Long userId, Integer startLevel, Integer endLevel);

    Integer countInviteLevels(Long userId);
}
